import { Rule, RuleType } from '@midwayjs/validate';
import { ApiProperty } from '@midwayjs/swagger';
import { MapDTO } from './map';
/**
 * 描述
 */
export class AddressDTO extends MapDTO {
    // 描述
    @ApiProperty({ example: '收件人', description: 'The name of the Catname' })
    @Rule(RuleType.string().required())
    name: string;
    @ApiProperty({ example: 6, description: 'The name of the Catname' })
    @Rule(RuleType.number())
    id: number;
    @ApiProperty({ example: 6, description: 'The name of the Catname' })
    @Rule(RuleType.number())
    distance: number;
    @ApiProperty({ example: '门派1103', description: 'The name of the Catname' })
    @Rule(RuleType.string().required())
    menpai: string;
    @ApiProperty({ example: '深圳市', description: 'The name of the Catname' })
    @Rule(RuleType.string().required())
    city: string;
    @ApiProperty({ example: '广东省', description: 'The name of the Catname' })
    @Rule(RuleType.string().required())
    province: string;
    @ApiProperty({ example: '440309', description: 'The name of the Catname' })
    @Rule(RuleType.string().required())
    areaId: string;
    @ApiProperty({ example: '龙华区', description: 'The name of the Catname' })
    @Rule(RuleType.string().required())
    area: string;
    @ApiProperty({ example: '详细地址', description: 'The name of the Catname' })
    @Rule(RuleType.string().required())
    address: string;
    @ApiProperty({ example: '手机号码', description: 'The name of the Catname' })
    @Rule(RuleType.string().required())
    mobile: string;
}